//
//  DetailView.m
//  UI_通讯_26
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 liwenhan. All rights reserved.
//

#import "DetailView.h"

@implementation DetailView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.nameLabel = [[UILabel alloc]init];
        [self addSubview:self.nameLabel];
        
        self.cityLabel = [[UILabel alloc]init];
        [self addSubview:self.cityLabel];
        
        self.phoneLabel = [[UILabel alloc]init];
        [self addSubview:self.phoneLabel];
        
        self.qqLabel = [[UILabel alloc]init];
        [self addSubview:self.qqLabel];
        
        self.numberLabel = [[UILabel alloc]init];
        [self addSubview:self.numberLabel];
        
        self.namedLabel = [[UILabel alloc]init];
        [self addSubview:self.namedLabel];
        
        self.citydLabel = [[UILabel alloc]init];
        [self addSubview:self.citydLabel];
        
        self.phonedLabel = [[UILabel alloc]init];
        [self addSubview:self.phonedLabel];
        
        self.qqdLabel = [[UILabel alloc]init];
        [self addSubview:self.qqdLabel];
        
        self.numberdLabel = [[UILabel alloc]init];
        [self addSubview:self.numberdLabel];

        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.nameLabel.frame = CGRectMake(30, 30, self.window.frame.size.width - 30, 60);
    self.nameLabel.font = [UIFont systemFontOfSize:28];
    
    self.numberLabel.frame = CGRectMake(30, 100, 80, 40);
    self.numberLabel.text = @"学号:";
    
    self.cityLabel.frame = CGRectMake(30, 150, 80, 40);
    self.cityLabel.text = @"籍贯:";
    
    self.phoneLabel.frame = CGRectMake(30, 200, 80, 40);
    self.phoneLabel.text = @"电话号码:";
    
    self.qqLabel.frame = CGRectMake(30, 250, 80, 40);
    self.qqLabel.text= @"qq号码:";
    
    //
    
    self.numberdLabel.frame = CGRectMake(120, 100, self.window.frame.size.width - 90, 40);
    
    self.citydLabel.frame = CGRectMake(120, 150, self.window.frame.size.width - 90, 40);
    
    self.phonedLabel.frame = CGRectMake(120, 200, self.window.frame.size.width - 90, 40);
    
    self.qqdLabel.frame = CGRectMake(120, 250, self.window.frame.size.width - 90, 40);
    
}


@end
